<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title>
        报修管理
    </title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="css/main.css" media="all">
    <link rel="stylesheet" href="css/bootstrap.css">
    <script type="text/javascript" src="lib/loading/okLoading.js"></script>
    <!-- 引入ElementUI样式 -->
    <link rel="stylesheet" href="/css/index.css">

</head>
<body>
<div class="x-nav">
            <span class="layui-breadcrumb">
              <a><cite>我的小窝</cite></a>
              <a><cite>投诉建议</cite></a>
            </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"  href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<div class="x-body">
    <xblock>
        <button class="layui-btn" onclick="repair_add('填写报修信息','user_repair_add.html','1000','600')">
            <i class="layui-icon">&#xe608;</i>填写报修信息
        </button>
    </xblock>
</div>
<div id="app">
    <div class="x-body" >
        <div style="width:950px ">
            <el-form :model="repair" :rules="rules" ref="repairFormRef" label-width="120px" class="demo-ruleForm">

                <el-form-item label="所属社区" prop="communityName">
                    <el-input v-model="repair.communityName" :disabled="true"></el-input>
                </el-form-item>
                <el-form-item label="所属楼栋" prop="buildingName">
                    <el-input v-model="repair.buildingName" :disabled="true"></el-input>
                </el-form-item>

                <el-form-item label="设备名称" prop="facilities">
                    <el-input v-model="repair.facilities" :disabled="true"></el-input>
                </el-form-item>
                <el-form-item label="创建时间" prop="createTime">
                    <el-input v-model="repair.createTime" :disabled="true"></el-input>
                </el-form-item>

                <el-form-item label="报修描述" prop="remark">
                    <el-input
                            type="textarea"
                            :rows="5"
                            placeholder="请输入报修描述内容"
                            v-model="repair.remark"
                            :disabled="true">
                    </el-input>
                </el-form-item>

                <el-form-item label="状态" prop="status">
                    <el-tag v-model="repair.status">
                        {{repair.status}}
                    </el-tag>
                </el-form-item>

            </el-form>
        </div>
    </div>
</div>
<script src="lib/layui/layui.js" charset="utf-8"></script>
<script src="/js/vue.js" charset="utf-8"></script>
<!-- 引入Element组件库 -->
<script src="/js/index.js"></script>
<script src="/js/axios.js" charset="utf-8"></script>
<script src="js/x-layui.js" charset="utf-8"></script>
<script>
    var app = new Vue({
        el:"#app",//声明当前Vue在页面的作用域
        data:{
            repair:{},
        },
        created(){
            axios.post("/repair/select").then((res)=>{
                app.repair = res.data.data;
            });
        },


    });

    layui.use(['laydate','element','laypage','layer'], function(){
        $ = layui.jquery;//jquery
        laydate = layui.laydate;//日期插件
        lement = layui.element();//面包导航
        laypage = layui.laypage;//分页
        layer = layui.layer;//弹出层
        okLoading.close($)
        //以上模块根据需要引入

    });

    /*添加弹框*/
    function repair_add(title,url,w,h){
        x_admin_show(title,url,w,h);
    }
</script>

</body>
</html>